/*
 * @Description:
 * @Author: zhaolei
 * @Date: 2023-04-18 19:51:34
 */

import request from '@/router/axios';

// 获取宠物档案的评论信息
export function fetchPetFileComment(params) {
  return request({
    url: '/core/comment/pet/fb',
    method: 'get',
    params,
  });
}

// 获取宠物记录的评论信息
export function fetchPetRecordComment(params) {
  return request({
    url: '/core/comment/daily/fb',
    method: 'get',
    params,
  });
}
//获取动态的评论信息
export function fetchDymaicComment(params) {
  return request({
    url: '/core/comment/share/fb',
    method: 'get',
    params,
  });
}
// 屏蔽评论
export function shieldComment(code) {
  return request({
    url: `/core/comment/shield/${code}`,
    method: 'post',
  });
}

// 恢复评论
export function recoverComment(code) {
  return request({
    url: `/core/comment/restore/${code}`,
    method: 'post',
  });
}

// 获取文章的评论信息
export function fetchArticleComment(params) {
  return request({
    url: '/core/comment/article/fb',
    method: 'get',
    params,
  });
}
